meson: Fix Vulkan dependency checking
authorNirbheek Chauhan <nirbheek@centricular.com>
Fri, 4 Sep 2020 06:02:35 +0000 (11:32 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Fri, 4 Sep 2020 06:20:50 +0000 (11:50 +0530)
commitb25871438d9b112ee7a70b8d6880c0e200f57cfe
tree26febcb87d33ef6edff2b988dabbfbf740479044
parentaff3cc61942b0b68b15e065c6e65d245ebf23aa1
meson: Fix Vulkan dependency checking

The dependency block was completely wrong. It was:

1. Not searching for the lib manually when -Dvulkan=enabled (default).
   The else block was only hit when -Dvulkan=auto.
2. Unconditionally searching for the vulkan library in the else block
   when -Dvulkan=disabled

The manual searching is also not required because Meson has a custom
'vulkan' dependency class that already supports Windows, and is more
correct than the code here. Specifically, the current code does not
support picking up the Vulkan SDK from a custom path.

Fixes #3108
meson.build